package com.zx.onlineeducation.service.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * SMS短信服务主启动类
 *
 * @author 郑雪
 * @since 2022-01-25
 */
// 开启服务注册发现功能，作为客户端访问Nacos注册中心
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan("com.zx.onlineeducation")
public class SmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(SmsApplication.class, args);
        System.out.println("\033[45m【服务消费者】SMS短信服务，启动成功   ლ(´ڡ`ლ)ﾞ \033[0m\n");
    }
}
